package main

import "fmt"

func calSumFromAToB(a int, b int) int {
	var sum = 0
	for i := a; i <= b; i++ {
		sum += i
	}
	return sum
}

func main() {
	var sum = calSumFromAToB(1, 100)
	fmt.Println(sum)
}
